package org.mdrtwell.junit;

public class Largest {
	public int drawoffLargest(int[] nums) {
		if (nums == null)
			throw new IllegalArgumentException("数组不能为空！");
		int max = 0;
		if (nums.length > 0)
			max = nums[0];
		for (int j = 0; j < nums.length; j++) {
			int k = nums[j];
			if (k > max)
				max = k;
		}
		return max;
	}
}
